package io.wit.modules.wit.dao;

import io.wit.modules.sys.dao.BaseDao;
import io.wit.modules.wit.entity.FarmEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 基地管理
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-01-02 14:45:16
 */
@Mapper
public interface FarmDao extends BaseDao<FarmEntity> {

	List<FarmEntity> farmList();

	List<FarmEntity> getAllFarm(Map<String, Object> map);

	List<FarmEntity> farmList(Long subjectId);

	List<FarmEntity> getFarm(Long county);

	List<FarmEntity> farmLists(Long subjectId);

    List<Map<String,Object>> getTypeArea();

    List<Map<String,Object>> getTypeSales();

    List<Map<String,Object>> getTypePlant();

    List<Map<String,Object>> getTypeUnit();

    int saveFarmEntity(final HashMap<String,String> map);

    int editFarmEntity(final HashMap<String,String> map);

    Map<String, Object> queryMap(final Long id);

    List<Map<String,Object>> mapDashboard(final Map<String,Object> map);

    List<Map<String,Object>> getProxyArea(final Map<String,Object> map);
}